#include<stdio.h>
#include<stdlib.h>
int main() {
    freopen("sort3.in","r",stdin);
    freopen("sort3.out","w",stdout);
    int a,b,c;
    while(3==scanf("%d%d%d",&a,&b,&c)) {
        if(a<=b&&b<=c)
            printf("%d %d %d\n",a,b,c);
        else if(a<=c&&c<=b)
            printf("%d %d %d\n",a,c,b);
        else if(b<=a&&a<=c)
            printf("%d %d %d\n",b,a,c);
        else if(b<=c&&c<=a)
            printf("%d %d %d\n",b,c,a);
        else if(c<=a&&a<=b)
            printf("%d %d %d\n",c,a,b);
        else if(c<=b&&b<=a)
            printf("%d %d %d\n",c,b,a);
    }
    return 0;
}
